<?php
	require ("classAdmin.php");
	$obj=new admin();
	$del=$obj->ListNews();
	if(isset($_GET['idTin']))
	{
		$idTin=$_GET['idTin'];
		$obj->DeleteNews($idTin);
		header("location:".$_SERVER['HTTP_REFERER']);
	}
	if(isset($_GET['listid']))
	{
		$listid=explode(",",$_GET['listid']);
		for($i=0;$i<count($listid);$i++)
		{
			$idTin=$listid[$i];
			$obj->DeleteNews($idTin);
		}
		header("location:".$_SERVER['HTTP_REFERER']);
	}
?>